/**
 * Created by 小虎Oni on 2016/9/29.
 * update on 2016/10/9
 */
var AppDispatcher = require('./AppDisaptcher');
var config = require('../config');
var isDebug = config.isDebug;
function receiveAction(type,test,callback){
    isDebug&&console.log("[OniActionCreators] "+type);
    var action = {
        type:type,
        isOni:true,
        data:test,
        callback:callback||null
    };
    AppDispatcher.dispatch(action);
}
module.exports = {
    receiveAction:receiveAction
};